<?php
// +----------------------------------------------------------------------
// | title: 元宝日志
// +----------------------------------------------------------------------
// | Author: join
// +----------------------------------------------------------------------
// | Date: 2016/5/9 15:24
// +----------------------------------------------------------------------
// $gainCodeArr = array(-999 => '-=行为类型=-') + getDiffConfig('origin');
// $economyArr = getDiffConfig("data_economy");
//$economyArr = array();
//foreach ($unitArr as $id => $vo) {
//    $economyArr[$id] = $vo["name"];
//}
$configArr = config("operate_conf");
return array(
    1 => array(
        "title" => "仙玉日志",
        'table_name' => array("function" => "goldData"),
        "where" => array(
            "op_type" => array("name" => "操作类型", "type" => "select", "values" => $configArr, "value" => 0),
            // "type" => array('name' => '资产类型', "type" => "select", "values" => $economyArr, "value" => 0),
            'role_id' => array('name' => '玩家ID', 'type' => 'text', 'value' => ''),
            'name' => array('name' => '角色名', 'type' => 'text', 'value' => ''),
            'time' => array('name' => '时间', 'type' => 'date_time', 'values' => array('start_date' => date('Y-m-d 00:00:00'), 'end_date' => date('Y-m-d 23:59:59'))),
        ),
        "where_merge" => [],
        "export" => true,
        'show' => array(
            'role_id' => '玩家ID',
            'name' => '角色名',
            'role_lv' => "玩家等级",
            's_type' => ['操作类型', "function" => "GainTypeName","param" => ["field" => "s_type"]],
            // 'type' => ['物品名称', "function" => "itemName", "param" => ["field" => "type", "config" => "econnomy"]],
            'gold' => '仙玉',
            'bgold' => '绑定仙玉',
            'remain_gold' => '仙玉余额',
            'remain_bgold' => "绑定的仙玉余额",
            'time' => array("时间", "function" => "changeDate"),
            'type_str' =>['日志类型', "function" => "itemName", "param" => ["field" => "type_str", "config" => "log_type"]],
        )
    )
);